package com.spring.annotation.demo.annotaions.configures.configuration;

import com.spring.annotation.project.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by yufeng on 2021/07/07 15:02
 */
@Configuration
public class MyConfig {

    @Bean(name = "haha")
    public Person person1(){
        return new Person("xm",18);
    }
}
